"""Custapp URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from Cust import views
import controller
import os



urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'signcheck',views.checkuser),
    url(r'index.html',views.showIndex),

    url(r'lesson.html',views.showlesson),
    url(r'lesson_add.html',views.lessonadd),
    url(r'addlesson',views.getlesson),
    url(r'updatelesson',views.updatelesson),
    url(r'lessonupdate',views.lessonupdate),
    url(r'dellesson',views.dellesson),

    url(r'reset-password.html',views.showreset_password),

    url(r'teacher.html',views.showteacher),
    url(r'teacher_add.html',views.teacheradd),
    url(r'addteacher',views.getteacher),
    url(r'updateteacher',views.updateteacher),
    url(r'teacherupdate',views.teacherupdate),
    url(r'delteacher',views.delteacher),

    url(r'student.html',views.showstudent),
    url(r'student_add.html',views.studentadd),
    url(r'addstudent',views.getstudent),
    url(r'updatestudent',views.updatestudent),
    url(r'studentupdate',views.studentupdate),
    url(r'delstudent',views.delstudent),
    url(r'class.html',views.showclass),
    url(r'class_add.html',views.classadd),
    url(r'addclass',views.getclass),
    url(r'updateclass',views.updateclass),
    url(r'classupdate',views.classupdate),
    url(r'delclass',views.delclass),
    url(r'dict.html',views.showdict),
    url(r'dict_add.html',views.dictadd),
    url(r'adddict',views.getdict),
    url(r'updatedict',views.updatedict),
    url(r'dictupdate',views.dictupdate),
    url(r'deldict',views.deldict),

    url(r'user.html',views.showuser),
    url(r'user_add.html',views.useradd),
    url(r'adduser',views.getuser),
    url(r'updateuser',views.updateuser),
    url(r'userupdate',views.userupdate),
    url(r'deluser',views.deluser),
    url(r'password_update.html',views.updatepassword),
    url(r'updatepassword',views.passwordupdate),

    url(r'signout',views.signout),


    url(r'teacher_rollcall.html',views.showteacherrollcall),
    url(r'rollselectlesson',views.showlessonrollcall),
    url(r'selectrollcall',views.showrollcall),
    url(r'rollcallinfo',views.rollcallinfo),
    url(r'uploadpic',views.uploadpic),
    url(r'downloadpic',views.downloadpic),

    url(r'news_add.html',views.newsadd),
    url(r'news.html',views.shownews),
    url(r'addnews',views.addnews),
    url(r'delnews',views.delnews),
    # url(r'shownews',views.addnews),
    # url(r'pushnews',views.delnews),

    url(r'mmd_add.html',views.mmdadd),
    url(r'mmd.html',views.showmmd),
    url(r'addmmd',views.addmmd),
    url(r'delmmd',views.delmmd),

    url(r'acade_add.html',views.acadeadd),
    url(r'acade.html',views.showacade),
    url(r'addacade',views.addacade),
    url(r'delacade',views.delacade),

    url(r'election_add.html',views.electionadd),
    url(r'election.html',views.showelection),
    url(r'addelection',views.addelection),
    url(r'delelection',views.delelection),
    url(r'goelection',views.goelection),
    url(r'goelestu',views.goelestu),

    url(r'exceldown',views.excel_export),
    url(r'excel_upload.html',views.expert_excle),
    url(r'uploadstudents',views.uploadstudents),
    url(r'uploadteacher',views.uploadteacher),
    url(r'uploadclass',views.uploadclass),
    url(r'ueEditorControler',controller.handler),
    #( r'^Static/(?P<path>.*)$', 'django.views.static.serve',{ 'document_root': (os.path.dirname(__file__)+"/Static").replace('\\','/') }),
    url(r'',views.showsign_in),


]
